<?php

    header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
    header('Pragma: no-cache'); // HTTP 1.0.

    include 'database.php';
    
    var_dump($_GET);

    $ownerID = $_GET['ownerID'];
    $name = utf8_decode(mysql_real_escape_string($_GET['name']));
    
    $sql="INSERT INTO QuizCategories (id, ownerID, name) VALUES (null, '".$ownerID."', '".$name."' )";
    
    if (!mysql_query($sql)) {
        die('Error: ' . mysql_error($dbhandle));
    }
        
    mysql_close($dbhandle);
?>